\hline
\end{longtable}
\subsection{Additional RPCs associated with class: crashdump}
-\subsubsection{RPC name:~get\_all}
-
-{\bf Overview:}
-Return a list of all the crashdumps known to the system.
-
- \noindent {\bf Signature:}
-\begin{verbatim} ((crashdump ref) Set) get_all (session_id s)\end{verbatim}
-
-
-\vspace{0.3cm}
-
- \noindent {\bf Return Type:}
-{\tt
-(crashdump ref) Set
-}
-
-
-references to all objects
-\vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
-\subsubsection{RPC name:~get\_uuid}
+\subsubsection{RPC name:~destroy}
{\bf Overview:}
-Get the uuid field of the given crashdump.
+Destroy the specified crashdump.
\noindent {\bf Signature:}
-\begin{verbatim} string get_uuid (session_id s, crashdump ref self)\end{verbatim}
+\begin{verbatim} void destroy (session_id s, crashdump ref self)\end{verbatim}
\noindent{\bf Arguments:}
\begin{tabular}{|c|c|p{7cm}|}
\hline
{\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt crashdump ref } & self & reference to the object \\ \hline
+{\tt crashdump ref } & self & The crashdump to destroy \\ \hline
\end{tabular}
\noindent {\bf Return Type:}
{\tt
-string
+void
}
-value of the field
+
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
-\subsubsection{RPC name:~get\_VM}
+\subsubsection{RPC name:~get\_all}
{\bf Overview:}
-Get the VM field of the given crashdump.
+Return a list of all the crashdumps known to the system.
\noindent {\bf Signature:}
-\begin{verbatim} (VM ref) get_VM (session_id s, crashdump ref self)\end{verbatim}
-
-
-\noindent{\bf Arguments:}
-
-
-\vspace{0.3cm}
-\begin{tabular}{|c|c|p{7cm}|}
- \hline
-{\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt crashdump ref } & self & reference to the object \\ \hline
+\begin{verbatim} ((crashdump ref) Set) get_all (session_id s)\end{verbatim}
-\end{tabular}
\vspace{0.3cm}
\noindent {\bf Return Type:}
{\tt
-VM ref
+(crashdump ref) Set
}
-value of the field
+references to all objects
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
-\subsubsection{RPC name:~get\_VDI}
+\subsubsection{RPC name:~get\_uuid}
{\bf Overview:}
-Get the VDI field of the given crashdump.
+Get the uuid field of the given crashdump.
\noindent {\bf Signature:}
-\begin{verbatim} (VDI ref) get_VDI (session_id s, crashdump ref self)\end{verbatim}
+\begin{verbatim} string get_uuid (session_id s, crashdump ref self)\end{verbatim}
\noindent{\bf Arguments:}
\noindent {\bf Return Type:}
{\tt
-VDI ref
+string
}
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
-\subsubsection{RPC name:~create}
+\subsubsection{RPC name:~get\_VM}
{\bf Overview:}
-Create a new crashdump instance, and return its handle.
+Get the VM field of the given crashdump.
\noindent {\bf Signature:}
-\begin{verbatim} (crashdump ref) create (session_id s, crashdump record args)\end{verbatim}
+\begin{verbatim} (VM ref) get_VM (session_id s, crashdump ref self)\end{verbatim}
\noindent{\bf Arguments:}
\begin{tabular}{|c|c|p{7cm}|}
\hline
{\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt crashdump record } & args & All constructor arguments \\ \hline
+{\tt crashdump ref } & self & reference to the object \\ \hline
\end{tabular}
\noindent {\bf Return Type:}
{\tt
-crashdump ref
+VM ref
}
-reference to the newly created object
+value of the field
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
-\subsubsection{RPC name:~destroy}
+\subsubsection{RPC name:~get\_VDI}
{\bf Overview:}
-Destroy the specified crashdump instance.
+Get the VDI field of the given crashdump.
\noindent {\bf Signature:}
-\begin{verbatim} void destroy (session_id s, crashdump ref self)\end{verbatim}
+\begin{verbatim} (VDI ref) get_VDI (session_id s, crashdump ref self)\end{verbatim}
\noindent{\bf Arguments:}
\noindent {\bf Return Type:}
{\tt
-void
+VDI ref
}
-
+value of the field
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
xen_crashdump_get_by_uuid(xen_session *session, xen_crashdump *result, char *uuid);
-/**
- * Create a new crashdump instance, and return its handle.
- */
-extern bool
-xen_crashdump_create(xen_session *session, xen_crashdump *result, xen_crashdump_record *record);
-
-
-/**
- * Destroy the specified crashdump instance.
- */
-extern bool
-xen_crashdump_destroy(xen_session *session, xen_crashdump crashdump);
-
-
/**
* Get the uuid field of the given crashdump.
*/
xen_crashdump_get_vdi(xen_session *session, xen_vdi *result, xen_crashdump crashdump);
+/**
+ * Destroy the specified crashdump
+ */
+extern bool
+xen_crashdump_destroy(xen_session *session, xen_crashdump self);
+
+
/**
* Return a list of all the crashdumps known to the system.
*/
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
bool
-xen_crashdump_create(xen_session *session, xen_crashdump *result, xen_crashdump_record *record)
+xen_crashdump_get_vm(xen_session *session, xen_vm *result, xen_crashdump crashdump)
{
abstract_value param_values[] =
{
- { .type = &xen_crashdump_record_abstract_type_,
- .u.struct_val = record }
+ { .type = &abstract_type_string,
+ .u.string_val = crashdump }
};
abstract_type result_type = abstract_type_string;
*result = NULL;
- XEN_CALL_("crashdump.create");
- return session->ok;
-}
-
-
-bool
-xen_crashdump_destroy(xen_session *session, xen_crashdump crashdump)
-{
- abstract_value param_values[] =
- {
- { .type = &abstract_type_string,
- .u.string_val = crashdump }
- };
-
- xen_call_(session, "crashdump.destroy", param_values, 1, NULL, NULL);
+ XEN_CALL_("crashdump.get_VM");
return session->ok;
}
bool
-xen_crashdump_get_vm(xen_session *session, xen_vm *result, xen_crashdump crashdump)
+xen_crashdump_get_vdi(xen_session *session, xen_vdi *result, xen_crashdump crashdump)
{
abstract_value param_values[] =
{
abstract_type result_type = abstract_type_string;
*result = NULL;
- XEN_CALL_("crashdump.get_VM");
+ XEN_CALL_("crashdump.get_VDI");
return session->ok;
}
bool
-xen_crashdump_get_vdi(xen_session *session, xen_vdi *result, xen_crashdump crashdump)
+xen_crashdump_destroy(xen_session *session, xen_crashdump self)
{
abstract_value param_values[] =
{
{ .type = &abstract_type_string,
- .u.string_val = crashdump }
+ .u.string_val = self }
};
- abstract_type result_type = abstract_type_string;
-
- *result = NULL;
- XEN_CALL_("crashdump.get_VDI");
+ xen_call_(session, "crashdump.destroy", param_values, 1, NULL, NULL);
return session->ok;
}